import request from '@/utils/request'
import {
  renderUrl
} from '@/utils'

const headers = {
  'Content-Type': 'application/json'
}
export function getidentity(data) {
  return request({
    url: renderUrl('/audit/identity/{id}', data),
    method: 'get'
  })
}

export function putidentity(data) {
  return request({
    url: '/audit/identity',
    method: 'put',
    data: JSON.stringify(data),
    headers
  })
}

export function grant(data) {
  return request({
    url: '/coupon/couponHistory/grant',
    method: 'post',
    data: JSON.stringify(data),
    headers
  })
}
export function edit(data) {
  return request({
    url: '/admin/member/editByIdInfo',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}

export function del(data) {
  return request({
    url: renderUrl('/admin/member/delById/{id}', data),
    method: 'GET'
  })
}

export default {
  getidentity,
  edit,
  del
}
